package com.iflysse.services;

import com.iflysse.pojo.bo.CommonBoResp;
import com.iflysse.pojo.bo.req.AddCourseBoReq;
import com.iflysse.pojo.bo.req.CourseIdBoReq;
import com.iflysse.pojo.bo.req.TeacherIdBoReq;
import com.iflysse.pojo.bo.req.UpdateCourseBoReq;
import com.iflysse.pojo.bo.resp.CourseAllBoResp;
import com.iflysse.pojo.bo.resp.CourseDetailBoResp;

import java.sql.SQLException;

/**
 * 课程业务接口
 */
public interface CourseService {
    /**
     * 添加课程
     * @param addCourseBoReq 课程
     * @return
     */
    CommonBoResp addCourse(AddCourseBoReq addCourseBoReq);

    /**
     * 修改课程
     * @param updateCourseBoReq 课程
     * @return
     */
    CommonBoResp updateCourse(UpdateCourseBoReq updateCourseBoReq);

    /**
     * 获取老师前6门课程
     * @param teacherIdBoReq
     * @return
     * @throws SQLException
     */
    CourseAllBoResp queryCourseTop6ByTeacherId(TeacherIdBoReq teacherIdBoReq) throws SQLException;


    /**
     *  获取老师所有课程
     * @param teacherIdBoReq
     * @return
     * @throws SQLException
     */
    CourseAllBoResp queryAllCourseByTeacherId(TeacherIdBoReq teacherIdBoReq) throws SQLException;

    /**
     * 根据课程编号获取课程详情
     * @param courseIdBoReq
     * @return
     */
    CourseDetailBoResp queryDetailByCourseId(CourseIdBoReq courseIdBoReq) throws SQLException;



}
